﻿namespace Aeon.Emulator.Sound.FM.Operators
{
    /// <summary>
    /// Specifies the current state of an ADSR envelope.
    /// </summary>
    internal enum AdsrState
    {
        /// <summary>
        /// The channel is off.
        /// </summary>
        Off,
        /// <summary>
        /// The envelope is in the attack phase.
        /// </summary>
        Attack,
        /// <summary>
        /// The envelope is in the decay phase.
        /// </summary>
        Decay,
        /// <summary>
        /// The envelope is in the sustain phase.
        /// </summary>
        Sustain,
        /// <summary>
        /// The envelope is in the release phase.
        /// </summary>
        Release
    }
}
